package com.my.study.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties
public class EncryptProperties {

    // 这一块一定要16位或者整数倍，最多256
    @Value("${spring.encrypt:www.testTest.com}")
    private String key;

    @Value("${spring.aesAlgorithm:AES/ECB/PKCS5Padding}")
    private String aesAlgorithm;
}
